package com.tencent.org.service;

import com.tencent.basic.service.IBaseService;
import com.tencent.org.domain.Shop;
import com.tencent.org.domain.ShopAuditLog;
import com.tencent.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;

/**
 * Service接口 ： 店铺
 */
public interface IShopService extends IBaseService<Shop> {

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 审核通过
     * @param log
     */
    void pass(ShopAuditLog log) throws MessagingException;

    /**
     * 审核驳回
     * @param log
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     * 柱状图
     * @return
     */
    List<ShopDto> getShopState();

    /**
     * 店铺激活以后
     * @param id
     */
    void shopActive(Long id);
}
